package com.TTBook.core.book.dao;

import com.TTBook.core.book.model.Book;
import com.TTBook.core.book.model.BookCriteria;
import java.util.List;

public interface BookDAO {
    int countByCriteria(BookCriteria criteria);

    int deleteByCriteria(BookCriteria criteria);

    int deleteByPrimaryKey(String bookid);

    void insert(Book record);

    void insertSelective(Book record);

    List selectByCriteria(BookCriteria criteria);

    Book selectByPrimaryKey(String bookid);

    int updateByCriteriaSelective(Book record, BookCriteria criteria);

    int updateByCriteria(Book record, BookCriteria example);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);
}